package pattern.decorator;

public class Test {
    public static void main(String[] args) {
        IProduct blueCoffee = new BlueCoffee();
        blueCoffee = new Sugar(blueCoffee);
        blueCoffee = new Sugar(blueCoffee);
        blueCoffee = new Milk(blueCoffee);

        System.out.println(blueCoffee.getInfo() + "费用：" + blueCoffee.getPrice());
    }
}
